package com.bdqn.t382.answer;

public class Service {
    @Autowired
    private DataRepository repository;

    public void saveData(String data) {
        repository.save(data);
    }

    public void loadData() {
        String data = repository.load();
        System.out.println("加载的数据: " + data);
    }
}
